import React from 'react';

import type { IBlankMod } from './data.d';
import ExceptionMod from './exception';

const EmptyMod = (props: IBlankMod) => {
  const defaultProps = {
    ...props,
    children: '还没有数据~',
    showBtn: false,
    height: '240px',
    showImg: true,
    imgSrc: 'https://img.alicdn.com/tfs/TB1Bc0yB5_1gK0jSZFqXXcpaXXa-367-215.svg',
    btnText: '刷新一下',
    horizontal: false,
  };
  const newProps = { ...defaultProps, ...props };
  return <ExceptionMod {...newProps} />;
};

export default EmptyMod;
